package cn.stylefeng.guns.modular.recharge.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 充值记录表
 * </p>
 *
 * @author liuqiang
 * @since 2020-02-09
 */
@TableName("t_recharge")
public class Recharge implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户电话
     */
    @TableField("phone")
    private String phone;

    /**
     * 充值渠道
     */
    @TableField("channel")
    private String channel;

    /**
     * 充值金额
     */
    @TableField("amount")
    private BigDecimal amount;

    /**
     * 充值状态 0：未到账，1：已到账
     */
    @TableField("state")
    private int state;

    /**
     * 充值时间
     */
      @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 交易流水号
     */
    @TableField("serial_no")
    private String serialNo;

    /**
     * 订单号
     */
    @TableField("order_no")
    private String orderNo;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getChannel() {
        return channel;
    }

    public void setChannel(String channel) {
        this.channel = channel;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getSerialNo() {
        return serialNo;
    }

    public void setSerialNo(String serialNo) {
        this.serialNo = serialNo;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    @Override
    public String toString() {
        return "Recharge{" +
        "id=" + id +
        ", phone=" + phone +
        ", channel=" + channel +
        ", amount=" + amount +
        ", state=" + state +
        ", createTime=" + createTime +
        ", serialNo=" + serialNo +
        ", orderNo=" + orderNo +
        "}";
    }
}
